package arrays;

import java.util.Arrays;
import java.util.Scanner;

public class arrays_2 {
    public static void main (String [] args ){
        int number ;
        int intarrays[] = new int[]{ 2, 9, 7 ,16 ,68};
        System.out.println( Arrays.toString(intarrays));
        Scanner scanner = new Scanner( System.in );
        System.out.println( " 请输入一个整数：" );
        number = scanner.nextInt();
        for (int i = 0; i < intarrays.length; i++) {
            if (number == intarrays[i]){
                System.out.println( number + "是数组中的第" + (i+1) + "个数.");
            }
        }

    }
}
